package com.ruibang.glass.material.constant;

/**
 * 物管各模块对应入库表
 */
public enum MaterialWareHouseInTableNameCode {
    YCLK_CK("ycl", "g_material_management_inventory"),
    BCPK_CK("bcp", "g_material_bcp_products_in_info"),
    CPK_CK("cpk", "g_material_cp_products_in_info"),
    BPBJK_CK("bpbj", "g_material_bhbj_management_inventory"),
    YBYQK_CK("ybyq", "g_material_yqyb_management_inventory"),
    CLK_CK("clk", "g_material_cl_management_inventory"),
    GJK_CK("gjk", "g_material_gj_management_inventory"),
    LBYPK_CK("lbyp", "g_material_lbyp_management_inventory"),
    HXP_CK("hxp", "g_material_hxp_management_inventory"),
    NYDL_CK("nydl", "g_material_nydl_management_inventory"),
    GJS_CK("gjs", "g_material_gjs_management_inventory"),
    DZSBK_CK("dzsb", "g_material_dzsb_management_inventory"),
    ZPK_CK("zpk", "g_material_dzsb_management_inventory"),
    BGJJ_CK("bgjj", "g_material_bgjj_management_inventory"),
    FWK_CK("fwk", "g_material_fwk_management_inventory"),
    ;

    private String code;
    private String msg;

    MaterialWareHouseInTableNameCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }

    public static String getValue(String code) {
        for (MaterialWareHouseInTableNameCode ele : values()) {
            if (ele.getCode() == code) {
                return ele.getMsg();
            }
        }
        return null;
    }
}
